<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/26
 * Time: 21:31
 */

/**
 * 读取文件
 * __DIR__
 */
$result = swoole_async_readfile(__DIR__."/1.txt", function ($filename, $fileContent) {
    echo "filename:" . $filename . PHP_EOL;
    echo "fileContent:" . $fileContent . PHP_EOL;
});

var_dump($result);
echo "start" . PHP_EOL;